import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/purchase/return-goods/list`,
      method: 'post',
      data
    })
  },
  // 编辑
  edit(data) {
    return request({
      url: `/v1/purchase/return-goods/edit`,
      method: 'post',
      data
    })
  },
  // 明细
  detail(params) {
    return request({
      url: `/v1/purchase/return-goods/detail`,
      method: 'get',
      params
    })
  },
  // 提交
  submit(params) {
    return request({
      url: `/v1/purchase/return-goods/submit`,
      method: 'get',
      params
    })
  },
  // 批量审核
  batchAudit(data) {
    return request({
      url: `/v1/purchase/return-goods/batch-audit`,
      method: 'post',
      data
    })
  },
  // 批量作废
  cancel(data) {
    return request({
      url: `/v1/purchase/return-goods/batch-cancel`,
      method: 'post',
      data
    })
  },
  // 接收仓库处理数据(WMS)
  callback(data) {
    return request({
      url: `/v1/purchase/return-goods/callback`,
      method: 'post',
      data
    })
  },
}
